/*
 * FishLayer.h
 *
 *  Created on: Oct 18, 2012
 *      Author: quyetnd
 */

#ifndef FISHLAYER_H_
#define FISHLAYER_H_
#include "cocos2d.h"
#include "../Objects/FishFactory.h"
USING_NS_CC;

class FishLayer : public CCLayer{
protected:
	ccArray* fishList;
public:
	FishLayer();
	virtual ~FishLayer();
	LAYER_NODE_FUNC(FishLayer);

	virtual void moveUp(float dt);
	virtual void moveDown(float dt);

	void addFish(Fish* fish);
	void removeFish(Fish* fish);

	void update(float dt);
	void moveFish(float dY);

	void genFish(float dt);
};

#endif /* FISHLAYER_H_ */
